<template>
  <div class="loading_cover_container"
  v-show="show">
    <div class="loading_wrapper">
      <div class="loading_content">
        <div><img src="../../../assets/loading.gif"/></div>
        <div>11111111</div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data(){
    return{
      show:false,
      message:"正在加载...",
      loadingCount:0
    }
  },
  methods:{
    close(){
      this.loadingCount--;
      console.log(this.loadingCount);
      console.log("loading关闭")
      if(this.loadingCount===0){
        this.show = false;
      }
    }
  }
}
</script>

<style scoped>
.loading_cover_container
{
  width: 100vw;
  height: 100vh;
  position: fixed;
  left: 0px;
  top:0px;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 9999;
}

.loading_wrapper
{
  width: 100%;
  height: 100%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.loading_content
{
  width: 40vw;
  display: inline-flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  background-color: white;
}

.loading_content img
{
  width: 100%;
}
</style>
